home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / trueSpace 7.6 / tS761B8Std.exe / {app} / Scripts / MaterialEditor / Bricks / Texturing / tex1Dbias.HLSL.Brick.xml < prev    next >
Extensible Markup Language  |  2008-06-10  |  1KB  |  16 lines

  1. <?xml version="1.0" encoding="utf-8" ?> 
  2. <ME_BRICK GUID="{760E34BF-DAE1-4601-90A4-9A57F9375B47}" Name="RtTex1DBias" GUIName="Tex1D_Bias" Description="Sample the 1D texture at given texture coordinates with additional mipmap bias [tex1Dbias]">
  3.     <ME_BRICK_INPUTPARAM GUID="{EFB1856D-0420-400E-80C8-2B63EA15CE0C}" Name="Sampler1D" Type="RtSampler1D"/>
  4.     <ME_BRICK_INPUTPARAM GUID="{64858F57-A044-4D47-8DCD-C4060D04A724}" Name="sCoordinate" Type="RtFloat"/>
  5.     <ME_BRICK_INPUTPARAM GUID="{499AD46A-7848-437D-964F-B67D2B359EB6}" Name="sBias" Type="RtFloat"/>
  6.     <ME_BRICK_OUTPUTPARAM GUID="{B9F06B05-BFCE-4FC5-84FD-01794ACDF204}" Name="vTextureColor4" Type="RtFloat4"/>
  7.     <ME_BRICK_CODE><![CDATA[
  8.         void RtTex1DBias(in RtSampler1D Sampler1D, in RtFloat sCoordinate, in RtFloat sBias, out RtFloat4 vTextureColor4)
  9.         {
  10.             RtFloat4 tmp = sCoordinate;
  11.             tmp.w = sBias;
  12.             vTextureColor4 = rtx_Tex1DBias(Sampler1D, tmp);
  13.         }
  14.     ]]></ME_BRICK_CODE>
  15. </ME_BRICK>
  16.